package com.itheima.admin.service;

import com.itheima.PageVo;
import com.itheima.admin.dto.AddDeptDto;
import com.itheima.admin.dto.DeptPageDto;
import com.itheima.admin.dto.UpdateDeptDto;
import com.itheima.admin.vo.DeptVo;

import java.util.List;

public interface IDepartmentService {

    PageVo<DeptVo> queryByPage(DeptPageDto deptPageDto);

    List<DeptVo> queryAllDepartments();

    boolean addDepartment(AddDeptDto addDeptDto);

    boolean deleteDepartment(String deptId);

    AddDeptDto queryById(String deptId);

    boolean editDepartment(UpdateDeptDto updateDeptDto);
}
